ab3a55
@@ -190,7 +190,7 @@
static VectorizedRowBatchCtx createFakeVrbCtx(MapWork mapWork) throws HiveExcept
       PartitionDesc partDesc = mapWork.getPathToPartitionInfo().get(paths.next());
       if (partDesc != null) {
         LinkedHashMap<String, String> partSpec = partDesc.getPartSpec();
-        if (partSpec != null && partSpec.isEmpty()) {
+        if (partSpec != null && !partSpec.isEmpty()) {
           partitionColumnCount = partSpec.size();
         }
       }
